package com.atguigu.servlets;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * liujianlong
 * 2022-01-22 22:04
 */
//演示向HttpSession保存数据
public class Demo04 extends HttpServlet {
     @Override
    protected void service(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{
         request.getSession().setAttribute("uname","lina");
     }

}
